package com.dayuanit.dy16.atm.mapper;

import com.dayuanit.dy16.atm.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getByUsername(String username);

    int updateEmail(@Param("userId") Long userId, @Param("email") String email);

    User getByEmail(String email);

    int updatePassword(@Param("userId") Long userId, @Param("password") String password);

}